<template>
  <div class="detail">
    商品详情页面，商品 id: {{ id }}
  </div>
</template>

<script>
export default {
  name: 'Detail',
  data() {
    return {
      id: 0
    }
  },
  created() {
    console.log('detail created:', this.$route)
    this.id = this.$route.query.id
  },
}
</script>

<style scoped>

</style>
